using System;
using System.Collections;
using System.ComponentModel;
using System.Runtime.Serialization;


namespace Entities
{
    [Serializable]
    [System.Data.Services.Common.DataServiceKey("ID")]
    public class WebPage:EntityBase
    {
        #region WebPage Properties
        private System.String _Name;
		[DataMember] public virtual System.String Name
		{
			get
			{
				return _Name;
			}
			set
			{
                if (_Name != value)
                {
                    _Name = value;
                    OnPropertyChanged("Name");
                }
			}
		}
        #endregion
        public override bool Equals(object obj)
        {
            if (obj == this) return true;
            if (obj == null) return false;
            if (obj is WebPage)
            {
                return (this.ID == (obj as WebPage).ID);
            }
            return false;
        }
        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }
    }
}